package guoanmaker.provider.business.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import guoanmaker.provider.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name="t_personal_collection")
public class PersonalCollection extends IdEntity{

	@OneToOne
	@JoinColumn(name="collection_userid")
	private PersonalUser personalUser;
	
	@OneToOne
	@JoinColumn(name="collection_conid")
	private ProvideCommodity provideCommodity;
	
	private Date collectionTime;
	
	private String cityId;
}
